package com.atguigu.gmall.weball;


import com.atguigu.gmall.common.interceptor.feign.anntation.EnableFeignHeaderInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 不需要配置数据源
 */
//@SpringBootApplication

/**
 * 1、引入thymeleaf starter
 * 2、
 *
 * SpringBoot启动以后会扫描主配置类（主启动类）所在的包及后代包的所有组件
 *   主启动类的包 com.atguigu.gmall.weball.**
 *   feign接口包 com.atguigu.gmall.feign.product 默认扫不到
 */
@EnableFeignHeaderInterceptor
@EnableFeignClients(basePackages = "com.atguigu.gmall.feign")  //开启feign远程调用功能
@SpringCloudApplication
public class WebAllMainApplication {


    public static void main(String[] args) {
        SpringApplication.run(WebAllMainApplication.class,args);




    }
}
